package com.qf.springbootopenapi.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

/**
 * @author 袁英洛
 * @version 1.0
 * @project open-api-based-on-springboot
 * @description HelloVo
 * @date 2022/10/19 13:42:59
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HelloVo {
    //@NotNull
    private Integer id;
    
    //@NotNull  // 需要该参数不能为null
    //@NotEmpty // 不可以为空串 ""
    //@Size(max = 100,min = 5)
    private String name;
    
    @Email
    private String email;
    
    @Pattern(regexp = "^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0\\d|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$")
    private String card;
}
